package com.liner.homework.first;

public class StringBuilderDemo {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder("你好世界");
        sb.append("我来了");
        System.out.println(sb);

        sb.replace(0,2,"我来了");
        System.out.println(sb);

        sb.insert(3,"这是个机会与挑战并存的");
        System.out.println(sb);

        sb.delete(0,4);
        System.out.println(sb);

    }
}
